import _import from "./_import";
import { RouterMeta } from "./app";
export const ResourceRouters = [
    {
        path: "manage",
        component: _import("resource-manage/src/manage/home.vue"),
        name: "ResourceManage",
        meta: {
            title: "公共表单项",
            requiresAuth: true,
            isMenu: true,
            roleName: "ResourceManageManage",
            roles: ["ResourceManageManage"]
        } as RouterMeta
    },
    {
        path: "add",
        component: _import("resource-manage/src/manage/edit.vue"),
        name: "ResourceManageAdd",
        meta: {
            title: "新增",
            requiresAuth: true,
            isMenu: false,
            roles: ["ResourceManageManage"]
        } as RouterMeta
    },
    {
        path: "edit",
        component: _import("resource-manage/src/manage/edit.vue"),
        name: "ResourceManageEdit",
        meta: {
            title: "修改表单项",
            requiresAuth: true,
            isMenu: false,
            roles: ["ResourceManageManage"]
        } as RouterMeta
    },
    {
        path: "user-add",
        component: _import("resource-manage/src/user-add/index.vue"),
        name: "ResourceAdd",
        meta: {
            title: "审核表单项",
            requiresAuth: true,
            isMenu: true,
            roles: ["ResourceManageManage"]
        } as RouterMeta
    },
    {
        path: "user-add/attr-match",
        component: _import("resource-manage/src/user-add/attr-match.vue"),
        name: "ResourceAttrMatch",
        meta: {
            title: "属性匹配",
            requiresAuth: true,
            isMenu: false,
            roles: ["ResourceManageManage"]
        } as RouterMeta
    },
    {
        path: "category/resource-details",
        component: _import("resource-manage/src/category/detail.vue"),
        name: "CategoryResourceDetails",
        meta: {
            title: "查看所属标签",
            requiresAuth: true,
            isMenu: false,
            roles: ["ResourceManageCategory"]
        } as RouterMeta
    },
    {
        path: "category/template-details",
        component: _import("resource-manage/src/category/detail.vue"),
        name: "CategoryTemplateDetails",
        meta: {
            title: "查看模板",
            requiresAuth: true,
            isMenu: false,
            roles: ["ResourceManageCategory"]
        } as RouterMeta
    },
    {
        path: "related-items",
        component: _import("resource-manage/src/related-items/index.vue"),
        name: "RelatedItems",
        meta: {
            title: "设置关联项",
            requiresAuth: true,
            isMenu: false
        } as RouterMeta
    }
];

export const RouterConfig = {};
